@import '../index';

.formContent {
  padding-bottom: 6px;
  background: rgba(26, 26, 26, 0.75);
  border-radius: 6px;
  box-shadow: -15px 15px 15px rgba(4, 5, 34, 0.85);
  .loginFormTitle {
    position: relative;
    padding: 4px 0;
    color: @login-text-color;
    font-weight: bold;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    border-bottom: 1px solid @login-border-color;
    .loginFormBackHandle {
      position: absolute;
      left: 6px;
      padding: 0 8px;
      color: @login-text-color;
      line-height: 32px;
      .loginFormBackHandleIcon {
        margin-right: 4px;
        font-size: 16px;
      }
      .loginFormBackHandleText {
        font-size: 14px;
      }
      &:hover {
        color: @primary-color;
      }
    }
  }
  .loginFormCube {
    padding: 20px 20px 12px 20px;
    & > form {
      padding-bottom: 6px;
    }
    .loginFormItem {
      position: relative;
      .loginFormLabelIcon {
        position: absolute;
        top: 6px;
        left: 10px;
        z-index: 10;
        display: none;
        @media screen and (max-width: @screen-sm) {
          display: inline;
        }
        &::after {
          color: white;
          content: '：';
        }
      }
      .loginFormValidateControl {
        width: 272px;
        @media screen and (max-width: @screen-lg) {
          width: 212px;
        }
        @media screen and (max-width: @screen-md) {
          width: 172px;
        }
        @media screen and (max-width: @screen-sm) {
          width: calc(100% - 108px);
          max-width: 212px;
        }
      }
      .loginIcon {
        color: white;
        font-size: 16px;
      }
      .loginFormValidateImage {
        position: absolute;
        top: 0;
        right: 0;
        width: 98px;
        height: 32px;
        border: 1px solid @login-border-color;
        border-radius: 2px;
        cursor: pointer;
      }
      .loginFormSendCode {
        position: absolute;
        top: 0;
        right: 0;
        width: 98px;
        height: 32px;
        button {
          display: flex;
          width: 100%;
          padding: 4px 8px;
          overflow: hidden;
          transform: scale(0.9);
          span:last-child {
            flex: 1;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            vertical-align: middle;
          }
        }
      }
      :global {
        .ant-form-item-label > label::after {
          color: white;
        }
        .ant-input {
          color: #4fa1d9;
          font-weight: bold;
          background-color: rgba(0, 0, 0, 0.5);
          border-color: rgba(6, 17, 47, 0.25);
        }
        .ant-input-affix-wrapper {
          background-color: rgba(0, 0, 0, 0.5);
          border-color: rgba(6, 17, 47, 0.25);
          .ant-input {
            background-color: unset;
            border-color: unset;
          }
        }
        .ant-input-suffix {
          .ant-input-password-icon {
            color: white;
          }
        }
        .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input,
        .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover {
          background-color: rgba(0, 0, 0, 0.5);
        }
        .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
        .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
          background-color: rgba(0, 0, 0, 0.5);
        }
      }
    }
    .loginExtraTypes {
      position: relative;
      height: 34px;
      padding-top: 6px;
      .loginExtraTypesLabel {
        color: rgba(255, 255, 255, 0.75);
        font-weight: 500;
        font-size: 14px;
        line-height: 28px;
      }
      .loginExtraTypesList {
        position: absolute;
        top: 6px;
        right: 0;
        left: 98px;
        height: 28px;
        overflow: hidden;
        .loginExtraTypesListItem {
          position: relative;
          display: inline-block;
          width: 28px;
          height: 28px;
          margin: 0 6px;
          overflow: hidden;
          text-align: center;
          vertical-align: middle;
          background-color: @login-border-color;
          border-radius: 50%;
          transition: background-color 0.3s ease;
          > span {
            position: absolute;
            top: 50%;
            left: 50%;
            color: @login-text-color;
            font-size: 15px;
            transform: translate(-50%, -50%);
          }
          &:hover:not(.disabled) {
            background-color: @primary-color;
            cursor: pointer;
            > span {
              color: white;
            }
          }
          &.disabled {
            cursor: not-allowed;
          }
        }
        .loginTypeLoading {
          display: inline-block;
          transform: translate(-6px, 6px) scale(0.75);
        }
      }
    }
  }
}
